package com.crm.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.crm.entity.News;

public interface NewsService {

	/**
	 * 
	* @Title: findNewsByPage
	* @author  
	* @Description: 查询新闻列表
	* @return
	* @return List<News>
	 */
	List<News> findNews();

	
	/**
	 * 
	* @Title: addNews
	* @author  
	* @Description: 添加新闻
	* @param news
	* @return void
	 */
	void addNews(News news);


	/**
	 * 
	* @Title: findNewsById
	* @author  
	* @Description: 按id查询新闻
	* @return
	* @return News
	 */
	News findNewsById(String id);


	/**
	 * 
	* @Title: findNewsByPage
	* @author  
	* @Description: 按标题查询新闻列表带分页
	* @param pageInde
	* @return
	* @return Page<News>
	 */
	Page<News> findNewsByPage(Integer pageIndex,String title);

}
